OBJS = head.o main.o

CFLAGS = -mcmodel=large -fno-builtin -m64 -I ../include -Wall -Werror -g

all: $(OBJS)


head.s: head.S Makefile
	gcc -E head.S > head.s

head.o: head.s
	as --64 head.s -o head.o

%.o: %.c
	gcc -c $*.c $(CFLAGS)

clear: Makefile
	rm head.s
	rm $(OBJS)

